import request from "@/utils/request";

//商品列表接口
export const getProductList = (id) => {
  return request.post("/products/detailsList?catagoryId=" + id);
};

//添加商品到购物车接口
export const addProductToCart = (userId,productId, quantity) => {
  return request.post("/cart/add", { userId,productId, quantity });
};
